package com.game.business.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.game.common.core.domain.BaseEntity;
import com.game.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

/**
 * 群聊对象 t_group
 *
 * @author ruoyi
 * @date 2025-10-15
 */
@Data
@TableName(value = "t_group")
@EqualsAndHashCode(callSuper = true)
public class TGroup extends BaseEntity{
private static final long serialVersionUID = 1L;

/** $column.columnComment */
@TableId(type = IdType.ASSIGN_ID)
private String id;
/** "环信群组ID" */
@Excel(name = "环信群组ID")
private String groupId;

 /** "orderId" */
 @Excel(name = "orderId")
 private String orderId;
/** "群名称" */
@Excel(name = "群名称")
private String groupName;
/** "群里图片" */
@Excel(name = "群里图片")
private String groupImage;
/** "群描述" */
@Excel(name = "群描述")
private String description;
/** "群主用户ID" */
@Excel(name = "群主用户ID")
private String ownerId;
/** "最大成员数" */
@Excel(name = "最大成员数")
private Long maxUsers;
/** "是否公开群" */
@Excel(name = "是否公开群")
private String isPublic;
/** "是否消息免打扰" */
@Excel(name = "是否消息免打扰")
private String isMdr;
/** "是否全体禁言"  1 代表禁言   */
@Excel(name = "是否全体禁言")
private String isJy;
/** "群状态" */
@Excel(name = "群状态")
private Integer status;

 /** "1  自动创建   2 后台创建" */
 @Excel(name = "类型")
 private String type;



 /** "参与人" */
 @Excel(name = "参与人")
 @TableField(exist = false)
 private String cjUserId;

 // 最后消息
@TableField(exist = false)
 private GroupMessage lastMessage;


 // 群成员
 @TableField(exist = false)
 private List<GroupMember> groupMemberList;

 @TableField(exist = false)
 private Boolean isMember;


 }
